jQuery

1.n番目の要素よりも前方/後方の要素を指定
:lt(index)
index番目よりも前方の要素

$(‘option:lt(3)’).css(‘backgrou ...

jQuery

サンプルコード

$(function() { $('option:even').css('background-color', 'Red'); $('option:odd').css('background-color', 'B ...

jQuery

:even
偶数番目のインデックス要素

サンプル

<script src=""></script><script>$(document).ready(function(){ ...

jQuery

書式
$(selector).fadeTo(speed,opacity,callback);

サンプルコード

<script>$(document).ready(function(){ $("bu ...

jQuery

書式
$(selector).fadeToggle(speed,callback);
サンプルコード

<script src="/jquery/1.10.2/jquery.min.js"></s ...

jQuery

フェードイン
$(“button”).click(function(){
$(“#div1”).fadeIn();
$(“#div2”). ...

JavaScript

サンプルコード

<div id="example"></div> <script type="text/babel"> var cftStyle = { fontSize: 100, colo ...

Software

1.react-domモジュールをimportする
<script src=”/react.development.js”></script>
<script sr ...

Software

1.単行のタグ
return <h3>test data</h3>;

2.複数行のタグ
return (
<div>
<h3>test dat ...

Server

1. パスワード生成
# slappasswd
New password:
Re-enter new password:
{SSHA}xxxxxxxxxxxxxxxxx

2.ldifファイル ...

Java

サンプルコード

@GET @Path("list") @Produces(MediaType.APPLICATION_JSON) public List<String> list() { return Arrays. ...

IT

1.font-sizeでボタンのサイズを指定する
サンプルコード
.button1 {font-size: 10px;}
.button2 {font-size: 12px;}
.button3 {fo ...

Software

説明
hsl(hue, saturation, lightness)
hue (色相) … 0~360
saturation (彩度) … 0~100%
lightness (輝度) … 0~100% ...

IT

関数記法
rgb(red, green, blue)/* 整数値 */
rgb( 100%, 0%, 30% );/* 割合 */
サンプルコード

<style>#p1 {background ...

IT

box-shadow
要素のフレームの周囲にシャドウ効果を追加する

サンプルコード

<style> div{width:120px;height:50px;background-color:yel ...

JavaScript

方法
style.opacityを使用し透過率を変更する

サンプルコード

方法style.opacityを使用し透過率を変更するサンプルコードJSコード<script>function Chang ...

IT

書式

opacity: value|inherit;

IE向けの指定

filter:alpha(opacity=50)

Firefox向けの指定

filter:Alpha(o ...

IT

border-image
指定された要素の周りに画像を描く

指定可能のプロパティ
border-image-source, border-image-slice, border-image-width, b ...