In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use CSS3 to beautify the HTML5 form, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The current form format is as follows:
# redemption {
Width: 100%
Font-family: 'ColaborateThinRegular'
Font-weight: 400
}
# redemption hgroup {
Argin-bottom: 20px
}
# redemption div {
Width: 100%
Margin-bottom: 15px
Float: left
}
# redemption span#range {
Float: left
Font-size: 3em
Width: 100%
Color: red
Clear: both; text-align: center
}
# howYouRateThis,#yearOfCrime {
Text-align: right
}
# redemption legend {
Font-style: italic
Color: # 434242
Font-size: 0.8em
Margin-bottom: 20px
Float: left; width: 100%
}
# redemption fieldset {
Border: 1px dotted # cccccc
Padding: 2%
Margin-bottom: 20px
}
# redemption label {
Width: 40%
Float: left
}
# redemption input {
Height: 20px
Font-size: 1em
Width: 40%
Float: right
}
# redemption textarea {
Height: 60px
Font-size: 1em
Width: 40%
Float: right
}
# redemption input#submit {
Text-decoration: none
Height: 34px
Font: 1.25em / * 36px / 16 * / 'BebasNeueRegular'; background-color: # b01c20
Border-radius: 8px
Color: white; float: right
Margin-bottom: 10px
Background: linear-gradient (top, rgb (241, rgb, 92) 0%, rgb (17.100%)
Margin-top: 10px
Box-shadow: 5px 5px 5px hsla (0,0%, 26.6667%, 0.8)
Text-shadow: 0px 1px black
Border: 1px solid # bfbfbf
. polyfill-important. Input-range,.polyfill-important. Step-c float: right
}
. polyfill-important. Step-controls {
Margin-right:-20pxsubscription
}
The only thing to note is that the last two styles work only when the corresponding patch script is running. First of all, I want each fieldset to have a nice gradient background, with a little space between each other. The following is the modified CSS code for fieldset:
# redemption fieldset {
Border: 1px dotted # cccccc
Padding: 2%
Margin-bottom: 20px
Background: # ffffff; background: linear-gradient (top, # ffffff 77% maxim f2f2f2)
Border-radius: 4px
Box-shadow: 2px 2px 5px hsla (0,0%, 16.6667%, 0.3)
}
The above is all the contents of the article "how to use CSS3 to beautify HTML5 forms". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.