Created
October 2, 2014 06:26
-
-
Save geckotang/e0731bfe3d1d34d01fb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title></title>demo</title> | |
<style type="text/css"> | |
label { | |
position: relative; | |
display: block; | |
border: 1px solid #ccc; | |
padding: 10px; | |
margin-bottom: 10px; | |
border-radius: 10px; | |
overflow: hidden; | |
} | |
input[type=radio]:checked + span::before { | |
content: ""; | |
position: absolute; | |
display: block; | |
width: 100%; | |
height: 100%; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
background: #eee; | |
z-index: -1; | |
} | |
</style> | |
</head> | |
<body> | |
<label> | |
<input type="radio" name="a"><span>テキスト</span> | |
</label> | |
<label> | |
<input type="radio" name="a"><span>テキスト</span> | |
</label> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment